<?php

// +----------------------------------------------------------------------

// | OneThink [ WE CAN DO IT JUST THINK IT ]

// +----------------------------------------------------------------------

// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.

// +----------------------------------------------------------------------

// | Author: 麦当苗儿 <zuojiazi@vip.qq.com>

// +----------------------------------------------------------------------



namespace Admin\Model;

use Think\Model;



/**

 * 导航模型

 * @author 麦当苗儿 <zuojiazi@vip.qq.com>

 */



class ChannelModel extends Model {

    protected $_validate = array(

        array('title', 'require', '标题不能为空', self::MUST_VALIDATE , 'regex', self::MODEL_BOTH),

        array('url', 'require', 'URL不能为空', self::MUST_VALIDATE , 'regex', self::MODEL_BOTH),

    );



    protected $_auto = array(

        array('create_time', NOW_TIME, self::MODEL_INSERT),

        array('update_time', NOW_TIME, self::MODEL_BOTH),

        array('status', '1', self::MODEL_BOTH),

    );



}

